package com.taoyibao.hongcanting.ui.mine.activity;

import android.os.Bundle;

import com.taoyibao.hongcanting.R;
import com.taoyibao.hongcanting.base.activity.BaseActivityPresenter;
import com.taoyibao.hongcanting.base.delegate.BackViewPageDelegate;
import com.taoyibao.hongcanting.constant.CodeConstant;
import com.taoyibao.hongcanting.ui.mine.fragment.UnusedCouponFragment;
import com.taoyibao.hongcanting.utils.CodeUtils;

/**
 * @author TangAnna
 * @description: 我的卡券
 * @date :${DATA} 16:17
 */
public class MineCouponActivity extends BaseActivityPresenter<BackViewPageDelegate> {
    @Override
    protected Class<BackViewPageDelegate> getDelegateClass() {
        return BackViewPageDelegate.class;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        viewDelegate.setFragmentManager(getSupportFragmentManager());
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void bindEvenListener() {
        super.bindEvenListener();
        viewDelegate.setTitle("我的卡券");
        viewDelegate.addViewPageTab(CodeUtils.getIdString(R.string.string_unused), UnusedCouponFragment.getInstance(CodeConstant.STATUS_UNUSED));
        viewDelegate.addViewPageTab(CodeUtils.getIdString(R.string.string_expired), UnusedCouponFragment.getInstance(CodeConstant.STATUS_EXPRIED));
    }
}
